﻿using System;
using RpcHelper;
using RpcModel;
using Wedonek.RpcStore.Service.DAL;
using Wedonek.RpcStore.Service.Interface;
using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Service.Collect
{
        internal class ErrorLogCollect : BasicCollect<SystemErrorLogDAL>, IErrorLogCollect
        {
                public SystemErrorLog Get (Guid id)
                {
                        SystemErrorLog log = base.BasicDAL.Get (id);
                        if (log == null)
                        {
                                throw new ErrorException ("rpc.log.not.find");
                        }
                        return log;
                }
                public SysErrorLog[] Query (LogQueryParam query, IBasicPage paging, out long count)
                {
                        return base.BasicDAL.Query (query, paging, out count);
                }
        }
}
